﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit.Abstractions;

namespace Utils
{
    public class XunitLoggerProvider : ILoggerProvider
    {
        ITestOutputHelper _output;

        public XunitLoggerProvider(ITestOutputHelper output)
        {
            _output = output;
        }

        public ILogger CreateLogger(string categoryName)
        {
            return new Xunit.Logging.Logger(_output, categoryName);
        }

        public void Dispose()
        {

        }
    }
}
